<?php
	session_start();
	require_once('../config.php'); // config.php在根目录下
	require_once( '../includes/functions.php');
	require_once( '../includes/class.user.php');
	require_once( '../includes/class.profile_manager.php');//add|edit profiles
	require_once( '../includes/header.php');
	
	$user = new User();
	if($user->isRookie()):
	/*
	 * 如果用户第一次登陆，显示first_home.php
	 */
		require_once('./first_home.php');
	else:
		header('Location: home.php');
		die();
	endif;
?>